package com.ruoyi.client.pojo.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
public class GoodsQueryPageForm {

    @ApiModelProperty(value = "页码", position = 1)
    private Integer pageNum;

    @ApiModelProperty(value = "页大小", position = 2)
    private Integer pageSize;

    @ApiModelProperty(value = "分类Id", position = 3, required = true)
    @NotNull(message = "categoryId不能为空 ")
    private Integer categoryId;

    @ApiModelProperty(value = "关键字", position = 4)
    private String keyword;

    @ApiModelProperty(value = "状态(0下架 /1在售)", position = 5)
    @Range(min = 0, max = 1, message = "status(0下架/1在售)")
    private Integer status;
}
